<?php 
/**
 * This file is part of DomMonitor.
 * 
 * DomMonitor is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * DomMonitor is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with DomMonitor.  If not, see <http://www.gnu.org/licenses/>.
 * 
 * @link http://inditel.ee/
 * @copyright 2007-2009 Inditel Meedia OÜ
 * @author Oliver Leisalu <oliver@inditel.ee>
 */

/**
* @author Oliver Leisalu, Inditel Meedia OÜ
* @package DomMonitor
*/
class DomMonitorTest {

	public static function run() {
		$ben = DomMonitor::init( 100 );
		
		Dom::$benchData = array(
			array(
				'start'=>105,
				'end'=>110,
				'value'=>'TestClass1'	
			)
		);
		
		Mysql::$benchData = array(
			array(
				'start'=>115,
				'end'=>120,
				'value'=>'Test query'	
			)
		);
		
		DomMonitor::gap('t1', 'test', 0, 100);
		DomMonitor::gap('t2', 'test', 0, 110);
		DomMonitor::gap('t3', 'test', 0, 120);
		DomMonitor::gap('t4', 'test', 0, 150);
		
		DomMonitor::gap('t1', 'test2', 0, 150);
		
		DomMonitor::display( 200 );
	}

}

?>